package JavaSE.CODE.javase;

public class cycle {
    public static void main(String[] args) {
//        for (int i = 0; i < 1000; i++) {
//            if(i%5==0)
//                System.out.println(i + '\t');
//            //每行输出三个，输出满三个后肯定
//            if(i%(5*3)==0)
//                System.out.println();
//        }

//        nine();

        int[] numbers = {10,20,30,40,50};
        for (int x :
                numbers) {
            System.out.println(x);
        }
        //增强for循环，把每一项都遍历出来，赋值给x

        breacon();
    }

    public static void nine(){

        for (int j = 1; j < 10; j++) {
            for (int i = 1; i <= j; i++) {
                System.out.print(i+"*"+j+"="+i*j);
                System.out.print(" ");
            }
            System.out.println();
        }



    }

    public static void breacon() {
        int i=0;
        while(i<100){
            i++;
            if(i%10==0){
                System.out.println();
                continue;
            }
            System.out.print(i);
        }
    }

}

